﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using CAOS.Entity.Validation;

namespace CAOS.Entity
{
    [Table("USUARIO")]
    [MetadataType(typeof(UsuarioMetaData))]
    public class Usuario : ICAOSEntity
    {
        [Key]
        [Column("USUA_SQ_USUARIO")]
        public int UsuarioID { get; set; }

        [Column("USUA_CD_LOGIN")]
        public string Login { get; set; }

        [Column("USUA_CD_SENHA")]
        public string Senha { get; set; }

        [Column("USUA_NM_USUARIO")]
        public string Nome { get; set; }

        [Column("USUA_TX_EMAIL")]
        public string Email { get; set; }

        [Column("USUA_CD_CPF")]
        public string CPF { get; set; }

        [Column("USUA_IN_ADMINISTRADOR_CAOS")]
        public bool IsAdministradorCAOS { get; set; }

        public virtual IList<Papel> Papeis { get; set; }
    }
}
